package com.lhy.admin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;


/**
 * <p>
 * 角色模型
 * </p>
 * @author 86159
 * @date 2021-05-22 16:50:22
 * Copyright (c) 2021 
 */
@Data
@TableName("t_role")
@Schema(description="角色")
public class Role implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色名
     */
    @Schema(description= "角色名")
    @TableField("name")
    private String name;

    /**
     * 备注
     */
    @Schema(description= "备注")
    @TableField("description")
    private String description;

    /**
     * 状态
     */
    @Schema(description= "状态")
    @TableField("status")
    private Integer status;


    public static final String ID = "id";
    public static final String NAME = "name";
    public static final String DESCRIPTION = "description";
    public static final String STATUS = "status";

}
